﻿using System;

namespace YWM.Entities
{
    [Serializable]
    public abstract class FullEntity : FullEntityOfTKey<long>, IEntity, IFullAudited
    {
        public override long Id { get; set; }
    }

    [Serializable]
    public abstract class FullEntityOfTKey<TKey> : CMEntityOfTKey<TKey>,
        IFullAudited<TKey>
    {
        public virtual bool IsDeleted { get; set; }

        public virtual TKey DeleterUserId { get; set; }

        public virtual DateTime? DeletionTime { get; set; }
    }
}
